package com.itheima.admin.feign;

import com.itheima.admin.pojo.AdChannel;
import com.itheima.common.vo.ResultVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

@FeignClient(value = "leadnews-admin",contextId = "adChannelFeign")
public interface AdChannelFeign {
    /**
     * 远程调用admin微服务查询
     * @return
     */
    @GetMapping("/api/adChannel/listAll")
    ResultVo<List<AdChannel>> listAll();
}
